import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 员工管理
      path: '', // 作为默认渲染路由
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      // 员工详情
      // path: 'detail', // 如果是查询参数，那么路径不变
      path: 'detail/:id', // 路径传参需要在路由接收配置
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: true // 不在左侧菜单显示
    }
  ]
}

